package com.jx.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication
@EnableAspectJAutoProxy // 如果使用 AspectJ 代理方式的话，需要开启这个注解
@Slf4j
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
        Runtime runtime=Runtime.getRuntime();
//        log.info("JVM最大内存:{}",runtime.maxMemory()/(1024*1024)+"MB");
//        log.info("JVM已分配内存:{}",runtime.totalMemory()/(1024*1024)+"MB");
//        log.info("JVM可用内存：{}",runtime.freeMemory()/(1024*1024)+"MB");
    }
}
